<head>
	<script type="text/javascript" src="catalog/view/javascript/jquery/script.js"></script>
	<script type="text/javascript" src="catalog/view/javascript/jquery/coin-slider.min.js"></script>
</head>
<div class="slider">
    <div id="coin-slider">
		<?php 
			$tv="select * from main_slide order by id desc";
			$tv_1=mysql_query($tv);
			while($tv_2=mysql_fetch_array($tv_1))
			{
				$m=explode(".",$tv_2['name']);
				$duoi_file=$m[count($m)-1];
				$link_file="catalog/view/theme/default/image/slide/main/".$tv_2['name'];
				$link_lien_ket=$tv_2['link'];
				if($duoi_file=="swf")
				{
					flash($link_file,625,262);
				}
				else 
				{
					echo "<a href='$link_lien_ket' target='_blank'>";
					echo "<img src='$link_file' width='625' height='262'>";
					echo "</a>";
				}
			}
		?>
	</div>
    <div class="clr"></div>
</div>